package com.guigu.tms.manager.controller.zhh;

import com.guigu.tms.commons.base.entity.TruckType;
import com.guigu.tms.commons.base.feign.TruckTypeFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("truckType")
public class TruckController {
    @Autowired
    private TruckTypeFeignClient truckTypeFeignClient;
    @GetMapping("/truckTypeAll")
    public List<TruckType> list(){
        return truckTypeFeignClient.list();
    }
}
